<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.13"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>PHP Class Manager (Smart PHP): Исходный файл pcm/users/user.class.php</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">PHP Class Manager (Smart PHP)
   &#160;<span id="projectnumber">1.0</span>
   </div>
   <div id="projectbrief">Руководство программиста по использованию PCM</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Создано системой Doxygen 1.8.13 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Поиск');
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
$(function() {
  initMenu('',true,false,'search.php','Поиск');
  $(document).ready(function() { init_search(); });
});
</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="dir_690f39e4732a141faee69ce026190629.html">pcm</a></li><li class="navelem"><a class="el" href="dir_4b9ac5fc40fe20b8599356021dd432dc.html">users</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="headertitle">
<div class="title">user.class.php</div>  </div>
</div><!--header-->
<div class="contents">
<a href="user_8class_8php.html">См. документацию.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160;&lt;?php</div><div class="line"><a name="l00002"></a><span class="lineno">    2</span>&#160;  declare(strict_types = 1);</div><div class="line"><a name="l00003"></a><span class="lineno">    3</span>&#160;  <span class="keyword">namespace </span><a class="code" href="namespace_p_c_m_1_1_users.html">PCM\Users</a>;</div><div class="line"><a name="l00004"></a><span class="lineno">    4</span>&#160;  </div><div class="line"><a name="l00014"></a><span class="lineno"><a class="line" href="class_p_c_m_1_1_users_1_1_user.html">   14</a></span>&#160;  <span class="keyword">class </span><a class="code" href="class_p_c_m_1_1_users_1_1_user.html">User</a></div><div class="line"><a name="l00015"></a><span class="lineno">   15</span>&#160;  {</div><div class="line"><a name="l00016"></a><span class="lineno"><a class="line" href="class_p_c_m_1_1_users_1_1_user.html#afc31993e855f9631572adfedcfe6f34b">   16</a></span>&#160;    <span class="keyword">private</span> <a class="code" href="class_p_c_m_1_1_users_1_1_user.html#afc31993e855f9631572adfedcfe6f34b">$login</a>;</div><div class="line"><a name="l00017"></a><span class="lineno"><a class="line" href="class_p_c_m_1_1_users_1_1_user.html#a607686ef9f99ea7c42f4f3dd3dbb2b0d">   17</a></span>&#160;    <span class="keyword">private</span> <a class="code" href="class_p_c_m_1_1_users_1_1_user.html#a607686ef9f99ea7c42f4f3dd3dbb2b0d">$password</a>;</div><div class="line"><a name="l00018"></a><span class="lineno"><a class="line" href="class_p_c_m_1_1_users_1_1_user.html#abcb0064284efe2052df665e28be2988a">   18</a></span>&#160;    <span class="keyword">private</span> <a class="code" href="class_p_c_m_1_1_users_1_1_user.html#abcb0064284efe2052df665e28be2988a">$account_type</a>;</div><div class="line"><a name="l00019"></a><span class="lineno"><a class="line" href="class_p_c_m_1_1_users_1_1_user.html#af1880da420f308d6a0636fe8af816049">   19</a></span>&#160;    <span class="keyword">private</span> <a class="code" href="class_p_c_m_1_1_users_1_1_user.html#af1880da420f308d6a0636fe8af816049">$expiration_date</a>;</div><div class="line"><a name="l00020"></a><span class="lineno">   20</span>&#160;    </div><div class="line"><a name="l00021"></a><span class="lineno"><a class="line" href="class_p_c_m_1_1_users_1_1_user.html#a38e0534bf4e862725204d4aaddd88bc6">   21</a></span>&#160;    <span class="keyword">function</span> <a class="code" href="class_p_c_m_1_1_users_1_1_user.html#a38e0534bf4e862725204d4aaddd88bc6">__construct</a>(<span class="keywordtype">string</span> <a class="code" href="class_p_c_m_1_1_users_1_1_user.html#afc31993e855f9631572adfedcfe6f34b">$login</a>,</div><div class="line"><a name="l00022"></a><span class="lineno">   22</span>&#160;                         <span class="keywordtype">string</span> <a class="code" href="class_p_c_m_1_1_users_1_1_user.html#a607686ef9f99ea7c42f4f3dd3dbb2b0d">$password</a>,</div><div class="line"><a name="l00023"></a><span class="lineno">   23</span>&#160;                         <span class="keywordtype">int</span> <a class="code" href="class_p_c_m_1_1_users_1_1_user.html#abcb0064284efe2052df665e28be2988a">$account_type</a>,</div><div class="line"><a name="l00024"></a><span class="lineno">   24</span>&#160;                         <span class="keywordtype">string</span> <a class="code" href="class_p_c_m_1_1_users_1_1_user.html#af1880da420f308d6a0636fe8af816049">$expiration_date</a></div><div class="line"><a name="l00025"></a><span class="lineno">   25</span>&#160;    ) {</div><div class="line"><a name="l00026"></a><span class="lineno">   26</span>&#160;      $this-&gt;<a class="code" href="class_p_c_m_1_1_users_1_1_user.html#aa311da27ba5706f5710cea7706c8eae1">login</a> = <a class="code" href="class_p_c_m_1_1_users_1_1_user.html#afc31993e855f9631572adfedcfe6f34b">$login</a>;</div><div class="line"><a name="l00027"></a><span class="lineno">   27</span>&#160;      $this-&gt;<a class="code" href="class_p_c_m_1_1_users_1_1_user.html#af692b38313fcd34758e3269d74da796f">password</a> = <a class="code" href="class_p_c_m_1_1_users_1_1_user.html#a607686ef9f99ea7c42f4f3dd3dbb2b0d">$password</a>;</div><div class="line"><a name="l00028"></a><span class="lineno">   28</span>&#160;      $this-&gt;account_type = <a class="code" href="class_p_c_m_1_1_users_1_1_user.html#abcb0064284efe2052df665e28be2988a">$account_type</a>;</div><div class="line"><a name="l00029"></a><span class="lineno">   29</span>&#160;      $this-&gt;expiration_date = <a class="code" href="class_p_c_m_1_1_users_1_1_user.html#af1880da420f308d6a0636fe8af816049">$expiration_date</a>;</div><div class="line"><a name="l00030"></a><span class="lineno">   30</span>&#160;    }</div><div class="line"><a name="l00031"></a><span class="lineno">   31</span>&#160;    </div><div class="line"><a name="l00032"></a><span class="lineno"><a class="line" href="class_p_c_m_1_1_users_1_1_user.html#aa311da27ba5706f5710cea7706c8eae1">   32</a></span>&#160;    <span class="keyword">public</span> <span class="keyword">function</span> <a class="code" href="class_p_c_m_1_1_users_1_1_user.html#aa311da27ba5706f5710cea7706c8eae1">login</a>() : string</div><div class="line"><a name="l00033"></a><span class="lineno">   33</span>&#160;    {</div><div class="line"><a name="l00034"></a><span class="lineno">   34</span>&#160;      <span class="keywordflow">return</span> <a class="code" href="class_p_c_m_1_1_users_1_1_user.html#afc31993e855f9631572adfedcfe6f34b">$this-&gt;login</a>;</div><div class="line"><a name="l00035"></a><span class="lineno">   35</span>&#160;    }</div><div class="line"><a name="l00036"></a><span class="lineno">   36</span>&#160;    </div><div class="line"><a name="l00037"></a><span class="lineno"><a class="line" href="class_p_c_m_1_1_users_1_1_user.html#af692b38313fcd34758e3269d74da796f">   37</a></span>&#160;    <span class="keyword">public</span> <span class="keyword">function</span> <a class="code" href="class_p_c_m_1_1_users_1_1_user.html#af692b38313fcd34758e3269d74da796f">password</a>() : string</div><div class="line"><a name="l00038"></a><span class="lineno">   38</span>&#160;    {</div><div class="line"><a name="l00039"></a><span class="lineno">   39</span>&#160;      <span class="keywordflow">return</span> <a class="code" href="class_p_c_m_1_1_users_1_1_user.html#a607686ef9f99ea7c42f4f3dd3dbb2b0d">$this-&gt;password</a>;</div><div class="line"><a name="l00040"></a><span class="lineno">   40</span>&#160;    }</div><div class="line"><a name="l00041"></a><span class="lineno">   41</span>&#160;    </div><div class="line"><a name="l00042"></a><span class="lineno"><a class="line" href="class_p_c_m_1_1_users_1_1_user.html#ae36c1761238deee63864f472b97fad5f">   42</a></span>&#160;    <span class="keyword">public</span> <span class="keyword">function</span> <a class="code" href="class_p_c_m_1_1_users_1_1_user.html#ae36c1761238deee63864f472b97fad5f">accountType</a>()</div><div class="line"><a name="l00043"></a><span class="lineno">   43</span>&#160;    {</div><div class="line"><a name="l00044"></a><span class="lineno">   44</span>&#160;      <span class="keywordflow">return</span> <a class="code" href="class_p_c_m_1_1_users_1_1_user.html#abcb0064284efe2052df665e28be2988a">$this-&gt;account_type</a>;</div><div class="line"><a name="l00045"></a><span class="lineno">   45</span>&#160;    }</div><div class="line"><a name="l00046"></a><span class="lineno">   46</span>&#160;    </div><div class="line"><a name="l00047"></a><span class="lineno"><a class="line" href="class_p_c_m_1_1_users_1_1_user.html#aeaacfaf3f121fe68c14eea4250b05d9e">   47</a></span>&#160;    <span class="keyword">public</span> <span class="keyword">function</span> <a class="code" href="class_p_c_m_1_1_users_1_1_user.html#aeaacfaf3f121fe68c14eea4250b05d9e">expirationDate</a>()</div><div class="line"><a name="l00048"></a><span class="lineno">   48</span>&#160;    {</div><div class="line"><a name="l00049"></a><span class="lineno">   49</span>&#160;      <span class="keywordflow">return</span> <a class="code" href="class_p_c_m_1_1_users_1_1_user.html#af1880da420f308d6a0636fe8af816049">$this-&gt;expiration_date</a>;</div><div class="line"><a name="l00050"></a><span class="lineno">   50</span>&#160;    }</div><div class="line"><a name="l00051"></a><span class="lineno">   51</span>&#160;    </div><div class="line"><a name="l00052"></a><span class="lineno">   52</span>&#160;  }  </div><div class="line"><a name="l00053"></a><span class="lineno">   53</span>&#160;  </div><div class="line"><a name="l00054"></a><span class="lineno">   54</span>&#160;?&gt;</div><div class="ttc" id="class_p_c_m_1_1_users_1_1_user_html_aeaacfaf3f121fe68c14eea4250b05d9e"><div class="ttname"><a href="class_p_c_m_1_1_users_1_1_user.html#aeaacfaf3f121fe68c14eea4250b05d9e">PCM\Users\User\expirationDate</a></div><div class="ttdeci">expirationDate()</div><div class="ttdef"><b>Definition:</b> <a href="user_8class_8php_source.html#l00047">user.class.php:47</a></div></div>
<div class="ttc" id="namespace_p_c_m_1_1_users_html"><div class="ttname"><a href="namespace_p_c_m_1_1_users.html">PCM\Users</a></div><div class="ttdef"><b>Definition:</b> <a href="um_8class_8php_source.html#l00003">um.class.php:3</a></div></div>
<div class="ttc" id="class_p_c_m_1_1_users_1_1_user_html_a38e0534bf4e862725204d4aaddd88bc6"><div class="ttname"><a href="class_p_c_m_1_1_users_1_1_user.html#a38e0534bf4e862725204d4aaddd88bc6">PCM\Users\User\__construct</a></div><div class="ttdeci">__construct(string $login, string $password, int $account_type, string $expiration_date)</div><div class="ttdef"><b>Definition:</b> <a href="user_8class_8php_source.html#l00021">user.class.php:21</a></div></div>
<div class="ttc" id="class_p_c_m_1_1_users_1_1_user_html_af1880da420f308d6a0636fe8af816049"><div class="ttname"><a href="class_p_c_m_1_1_users_1_1_user.html#af1880da420f308d6a0636fe8af816049">PCM\Users\User\$expiration_date</a></div><div class="ttdeci">$expiration_date</div><div class="ttdef"><b>Definition:</b> <a href="user_8class_8php_source.html#l00019">user.class.php:19</a></div></div>
<div class="ttc" id="class_p_c_m_1_1_users_1_1_user_html_abcb0064284efe2052df665e28be2988a"><div class="ttname"><a href="class_p_c_m_1_1_users_1_1_user.html#abcb0064284efe2052df665e28be2988a">PCM\Users\User\$account_type</a></div><div class="ttdeci">$account_type</div><div class="ttdef"><b>Definition:</b> <a href="user_8class_8php_source.html#l00018">user.class.php:18</a></div></div>
<div class="ttc" id="class_p_c_m_1_1_users_1_1_user_html_af692b38313fcd34758e3269d74da796f"><div class="ttname"><a href="class_p_c_m_1_1_users_1_1_user.html#af692b38313fcd34758e3269d74da796f">PCM\Users\User\password</a></div><div class="ttdeci">password()</div><div class="ttdef"><b>Definition:</b> <a href="user_8class_8php_source.html#l00037">user.class.php:37</a></div></div>
<div class="ttc" id="class_p_c_m_1_1_users_1_1_user_html_afc31993e855f9631572adfedcfe6f34b"><div class="ttname"><a href="class_p_c_m_1_1_users_1_1_user.html#afc31993e855f9631572adfedcfe6f34b">PCM\Users\User\$login</a></div><div class="ttdeci">$login</div><div class="ttdef"><b>Definition:</b> <a href="user_8class_8php_source.html#l00016">user.class.php:16</a></div></div>
<div class="ttc" id="class_p_c_m_1_1_users_1_1_user_html_ae36c1761238deee63864f472b97fad5f"><div class="ttname"><a href="class_p_c_m_1_1_users_1_1_user.html#ae36c1761238deee63864f472b97fad5f">PCM\Users\User\accountType</a></div><div class="ttdeci">accountType()</div><div class="ttdef"><b>Definition:</b> <a href="user_8class_8php_source.html#l00042">user.class.php:42</a></div></div>
<div class="ttc" id="class_p_c_m_1_1_users_1_1_user_html_a607686ef9f99ea7c42f4f3dd3dbb2b0d"><div class="ttname"><a href="class_p_c_m_1_1_users_1_1_user.html#a607686ef9f99ea7c42f4f3dd3dbb2b0d">PCM\Users\User\$password</a></div><div class="ttdeci">$password</div><div class="ttdef"><b>Definition:</b> <a href="user_8class_8php_source.html#l00017">user.class.php:17</a></div></div>
<div class="ttc" id="class_p_c_m_1_1_users_1_1_user_html"><div class="ttname"><a href="class_p_c_m_1_1_users_1_1_user.html">PCM\Users\User</a></div><div class="ttdoc">Описывает собой сущность - Пользователь </div><div class="ttdef"><b>Definition:</b> <a href="user_8class_8php_source.html#l00014">user.class.php:14</a></div></div>
<div class="ttc" id="class_p_c_m_1_1_users_1_1_user_html_aa311da27ba5706f5710cea7706c8eae1"><div class="ttname"><a href="class_p_c_m_1_1_users_1_1_user.html#aa311da27ba5706f5710cea7706c8eae1">PCM\Users\User\login</a></div><div class="ttdeci">login()</div><div class="ttdef"><b>Definition:</b> <a href="user_8class_8php_source.html#l00032">user.class.php:32</a></div></div>
</div><!-- fragment --></div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Документация по PHP Class Manager (Smart PHP). Последние изменения: Пн 28 Авг 2017 18:43:46. Создано системой &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.13
</small></address>
</body>
</html>
